package com.weseal.form;

import com.weseal.domain.FunctionInfo;
import com.weseal.domain.PartType;
import org.springframework.beans.BeanUtils;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @create 2017/9/10
 */
public class PartTypeForm {
	private Long id;
	private String partTypeName;
	private Boolean lock;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPartTypeName() {
		return partTypeName;
	}

	public void setPartTypeName(String partTypeName) {
		this.partTypeName = partTypeName;
	}

	public Boolean getLock() {
		return lock;
	}

	public void setLock(Boolean lock) {
		this.lock = lock;
	}

	public PartType convert2Domain() {
		PartType domain = new PartType();
		BeanUtils.copyProperties(this, domain);
		return domain;
	}
}
